package com.cd2cd.code_template.controller;


import com.cd2cd.code_template.service.CommService;
import com.cd2cd.code_template.vo.BaseRes;
import com.cd2cd.code_template.vo.SysAuthVo;
import com.cd2cd.code_template.vo.SysRouteVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/comm")
public class CommController {

    @Resource
    private CommService commService;

    @ResponseBody
    @RequestMapping(value="all-route", method=RequestMethod.POST)
    public BaseRes<List<SysRouteVo>> getAllRoute() {
        return commService.getAllRoute();
    }
}